package com.fhp;

import com.alibaba.excel.EasyExcel;
import com.alibaba.fastjson.JSON;
import com.fhp.Bean.ExcelCarData;
import lombok.extern.slf4j.Slf4j;

/**
 * @author liuxin
 */
@Slf4j
public class ReadData {
    public static void main(String[] args) {
        String fileName ="C:\\Users\\16665\\Desktop\\第一次上传-20231024-v2.xlsx";
        EasyExcel.read(fileName, ExcelCarData.class,new DataListener<ExcelCarData>(dataList->{
            for(ExcelCarData data : dataList){
                System.out.println(data.getCardType());
            }


        })).sheet().doRead();
    }
}
